﻿@model HdipCricketClub.ViewModels.SelectedTeamCreatedViewModel

@{
    ViewBag.Title = "ContactPlayersContacted";
}

<h2>Contact Players Contacted</h2>

@using (@Html.BeginForm())
{
    <fieldset>
        <legend>Fixture:</legend>
        <br />
        @Html.DisplayFor(ModelItem => Model.SelectedFixture.Team.Club.ShortName) @Html.DisplayFor(ModelItem => Model.SelectedFixture.Team.name)
         vs @Html.DisplayFor(ModelItem => Model.SelectedFixture.Opponent.club_name) @Html.DisplayFor(ModelItem => Model.SelectedFixture.Opponent.team_name)<br />
         on @Html.DisplayFor(ModelItem => Model.SelectedFixture.date)<br />
         <br />
         @Html.HiddenFor(ModelItem => Model.SelectedFixture.fixture_id)
    </fieldset>
    <br />
    <fieldset>
    <legend>Players Selected:</legend>
    <br />
    <table>
        <tr>
            <th>
                Name:
            </th>
            <th>
                Contacted:
            </th>
            <th>
                Confirmed:
            </th>
        </tr>
    @foreach (var item in Model.TeamCreated)
    {
        <tr>
                @Html.HiddenFor(modelItem => item.player_id)
            <td>
                @Html.DisplayFor(modelItem => item.Member.FirstAndLastName)
            </td>
            <td class="contact-player">
                @Html.DisplayFor(modelItem => item.contacted)
            </td>
            <td class="contact-player">
                @Html.DisplayFor(modelItem => item.confirmed)
            </td>
        </tr>
    }
    </table>
    </fieldset>
    <p>
        @Html.ActionLink("Return to Home Page", "Index", "Home")
    </p>
}